﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DLM.Domain.Model;
using DLM.Domain.DTO;
using DLM.Infrastructure.Domain;

namespace DLM.Domain.Repositories
{
    public interface IUserRepository:IRepository<User,int>
    {
        User FindByName(string userName);

        User FindByAccount(int accountID);

        IEnumerable<User> FindByParty(int partyID,int count);

        IEnumerable<User> FindByParty(int partyID, int pageIndex, int pageSize);

        IEnumerable<User> FindByParticipated(int partyID, int pageIndex, int pageSize);

        IEnumerable<BillBoard> BillBoard();

        IEnumerable<User> FindMyFriend(string accountName,int pageIndex,int pageSize);

        IEnumerable<UserDTO> FindParticipatedDTO(int partyID);

    }
}
